package com.ruoyi.system.city_map.service.impl;

import java.util.List;

import com.ruoyi.system.city_map.domain.CityMap;
import com.ruoyi.system.city_map.mapper.CityMapMapper;
import com.ruoyi.system.city_map.service.ICityMapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 城市-城市id映射Service业务层处理
 *
 * @author ruoyi
 * @date 2024-06-21
 */
@Service
public class CityMapServiceImpl implements ICityMapService
{
    @Autowired
    private CityMapMapper cityMapMapper;

    /**
     * 查询城市-城市id映射
     *
     * @param id 城市-城市id映射主键
     * @return 城市-城市id映射
     */
    @Override
    public CityMap selectCityMapById(String id)
    {
        return cityMapMapper.selectCityMapById(id);
    }

    /**
     * 查询城市-城市id映射列表
     *
     * @param cityMap 城市-城市id映射
     * @return 城市-城市id映射
     */
    @Override
    public List<CityMap> selectCityMapList(CityMap cityMap)
    {
        return cityMapMapper.selectCityMapList(cityMap);
    }

    /**
     * 新增城市-城市id映射
     *
     * @param cityMap 城市-城市id映射
     * @return 结果
     */
    @Override
    public int insertCityMap(CityMap cityMap)
    {
        return cityMapMapper.insertCityMap(cityMap);
    }

    /**
     * 修改城市-城市id映射
     *
     * @param cityMap 城市-城市id映射
     * @return 结果
     */
    @Override
    public int updateCityMap(CityMap cityMap)
    {
        return cityMapMapper.updateCityMap(cityMap);
    }

    /**
     * 批量删除城市-城市id映射
     *
     * @param ids 需要删除的城市-城市id映射主键
     * @return 结果
     */
    @Override
    public int deleteCityMapByIds(String[] ids)
    {
        return cityMapMapper.deleteCityMapByIds(ids);
    }

    /**
     * 删除城市-城市id映射信息
     *
     * @param id 城市-城市id映射主键
     * @return 结果
     */
    @Override
    public int deleteCityMapById(String id)
    {
        return cityMapMapper.deleteCityMapById(id);
    }
}
